package org.lanqiao.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AdminExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AdminExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAidIsNull() {
            addCriterion("aid is null");
            return (Criteria) this;
        }

        public Criteria andAidIsNotNull() {
            addCriterion("aid is not null");
            return (Criteria) this;
        }

        public Criteria andAidEqualTo(Integer value) {
            addCriterion("aid =", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidNotEqualTo(Integer value) {
            addCriterion("aid <>", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidGreaterThan(Integer value) {
            addCriterion("aid >", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidGreaterThanOrEqualTo(Integer value) {
            addCriterion("aid >=", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidLessThan(Integer value) {
            addCriterion("aid <", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidLessThanOrEqualTo(Integer value) {
            addCriterion("aid <=", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidIn(List<Integer> values) {
            addCriterion("aid in", values, "aid");
            return (Criteria) this;
        }

        public Criteria andAidNotIn(List<Integer> values) {
            addCriterion("aid not in", values, "aid");
            return (Criteria) this;
        }

        public Criteria andAidBetween(Integer value1, Integer value2) {
            addCriterion("aid between", value1, value2, "aid");
            return (Criteria) this;
        }

        public Criteria andAidNotBetween(Integer value1, Integer value2) {
            addCriterion("aid not between", value1, value2, "aid");
            return (Criteria) this;
        }

        public Criteria andAnameIsNull() {
            addCriterion("aname is null");
            return (Criteria) this;
        }

        public Criteria andAnameIsNotNull() {
            addCriterion("aname is not null");
            return (Criteria) this;
        }

        public Criteria andAnameEqualTo(String value) {
            addCriterion("aname =", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameNotEqualTo(String value) {
            addCriterion("aname <>", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameGreaterThan(String value) {
            addCriterion("aname >", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameGreaterThanOrEqualTo(String value) {
            addCriterion("aname >=", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameLessThan(String value) {
            addCriterion("aname <", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameLessThanOrEqualTo(String value) {
            addCriterion("aname <=", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameLike(String value) {
            addCriterion("aname like", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameNotLike(String value) {
            addCriterion("aname not like", value, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameIn(List<String> values) {
            addCriterion("aname in", values, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameNotIn(List<String> values) {
            addCriterion("aname not in", values, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameBetween(String value1, String value2) {
            addCriterion("aname between", value1, value2, "aname");
            return (Criteria) this;
        }

        public Criteria andAnameNotBetween(String value1, String value2) {
            addCriterion("aname not between", value1, value2, "aname");
            return (Criteria) this;
        }

        public Criteria andAaccountIsNull() {
            addCriterion("aaccount is null");
            return (Criteria) this;
        }

        public Criteria andAaccountIsNotNull() {
            addCriterion("aaccount is not null");
            return (Criteria) this;
        }

        public Criteria andAaccountEqualTo(String value) {
            addCriterion("aaccount =", value, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountNotEqualTo(String value) {
            addCriterion("aaccount <>", value, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountGreaterThan(String value) {
            addCriterion("aaccount >", value, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountGreaterThanOrEqualTo(String value) {
            addCriterion("aaccount >=", value, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountLessThan(String value) {
            addCriterion("aaccount <", value, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountLessThanOrEqualTo(String value) {
            addCriterion("aaccount <=", value, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountLike(String value) {
            addCriterion("aaccount like", value, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountNotLike(String value) {
            addCriterion("aaccount not like", value, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountIn(List<String> values) {
            addCriterion("aaccount in", values, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountNotIn(List<String> values) {
            addCriterion("aaccount not in", values, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountBetween(String value1, String value2) {
            addCriterion("aaccount between", value1, value2, "aaccount");
            return (Criteria) this;
        }

        public Criteria andAaccountNotBetween(String value1, String value2) {
            addCriterion("aaccount not between", value1, value2, "aaccount");
            return (Criteria) this;
        }

        public Criteria andApswIsNull() {
            addCriterion("apsw is null");
            return (Criteria) this;
        }

        public Criteria andApswIsNotNull() {
            addCriterion("apsw is not null");
            return (Criteria) this;
        }

        public Criteria andApswEqualTo(String value) {
            addCriterion("apsw =", value, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswNotEqualTo(String value) {
            addCriterion("apsw <>", value, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswGreaterThan(String value) {
            addCriterion("apsw >", value, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswGreaterThanOrEqualTo(String value) {
            addCriterion("apsw >=", value, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswLessThan(String value) {
            addCriterion("apsw <", value, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswLessThanOrEqualTo(String value) {
            addCriterion("apsw <=", value, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswLike(String value) {
            addCriterion("apsw like", value, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswNotLike(String value) {
            addCriterion("apsw not like", value, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswIn(List<String> values) {
            addCriterion("apsw in", values, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswNotIn(List<String> values) {
            addCriterion("apsw not in", values, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswBetween(String value1, String value2) {
            addCriterion("apsw between", value1, value2, "apsw");
            return (Criteria) this;
        }

        public Criteria andApswNotBetween(String value1, String value2) {
            addCriterion("apsw not between", value1, value2, "apsw");
            return (Criteria) this;
        }

        public Criteria andAemailIsNull() {
            addCriterion("aemail is null");
            return (Criteria) this;
        }

        public Criteria andAemailIsNotNull() {
            addCriterion("aemail is not null");
            return (Criteria) this;
        }

        public Criteria andAemailEqualTo(String value) {
            addCriterion("aemail =", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailNotEqualTo(String value) {
            addCriterion("aemail <>", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailGreaterThan(String value) {
            addCriterion("aemail >", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailGreaterThanOrEqualTo(String value) {
            addCriterion("aemail >=", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailLessThan(String value) {
            addCriterion("aemail <", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailLessThanOrEqualTo(String value) {
            addCriterion("aemail <=", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailLike(String value) {
            addCriterion("aemail like", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailNotLike(String value) {
            addCriterion("aemail not like", value, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailIn(List<String> values) {
            addCriterion("aemail in", values, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailNotIn(List<String> values) {
            addCriterion("aemail not in", values, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailBetween(String value1, String value2) {
            addCriterion("aemail between", value1, value2, "aemail");
            return (Criteria) this;
        }

        public Criteria andAemailNotBetween(String value1, String value2) {
            addCriterion("aemail not between", value1, value2, "aemail");
            return (Criteria) this;
        }

        public Criteria andAtelIsNull() {
            addCriterion("atel is null");
            return (Criteria) this;
        }

        public Criteria andAtelIsNotNull() {
            addCriterion("atel is not null");
            return (Criteria) this;
        }

        public Criteria andAtelEqualTo(String value) {
            addCriterion("atel =", value, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelNotEqualTo(String value) {
            addCriterion("atel <>", value, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelGreaterThan(String value) {
            addCriterion("atel >", value, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelGreaterThanOrEqualTo(String value) {
            addCriterion("atel >=", value, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelLessThan(String value) {
            addCriterion("atel <", value, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelLessThanOrEqualTo(String value) {
            addCriterion("atel <=", value, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelLike(String value) {
            addCriterion("atel like", value, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelNotLike(String value) {
            addCriterion("atel not like", value, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelIn(List<String> values) {
            addCriterion("atel in", values, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelNotIn(List<String> values) {
            addCriterion("atel not in", values, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelBetween(String value1, String value2) {
            addCriterion("atel between", value1, value2, "atel");
            return (Criteria) this;
        }

        public Criteria andAtelNotBetween(String value1, String value2) {
            addCriterion("atel not between", value1, value2, "atel");
            return (Criteria) this;
        }

        public Criteria andAdateIsNull() {
            addCriterion("adate is null");
            return (Criteria) this;
        }

        public Criteria andAdateIsNotNull() {
            addCriterion("adate is not null");
            return (Criteria) this;
        }

        public Criteria andAdateEqualTo(Date value) {
            addCriterion("adate =", value, "adate");
            return (Criteria) this;
        }

        public Criteria andAdateNotEqualTo(Date value) {
            addCriterion("adate <>", value, "adate");
            return (Criteria) this;
        }

        public Criteria andAdateGreaterThan(Date value) {
            addCriterion("adate >", value, "adate");
            return (Criteria) this;
        }

        public Criteria andAdateGreaterThanOrEqualTo(Date value) {
            addCriterion("adate >=", value, "adate");
            return (Criteria) this;
        }

        public Criteria andAdateLessThan(Date value) {
            addCriterion("adate <", value, "adate");
            return (Criteria) this;
        }

        public Criteria andAdateLessThanOrEqualTo(Date value) {
            addCriterion("adate <=", value, "adate");
            return (Criteria) this;
        }

        public Criteria andAdateIn(List<Date> values) {
            addCriterion("adate in", values, "adate");
            return (Criteria) this;
        }

        public Criteria andAdateNotIn(List<Date> values) {
            addCriterion("adate not in", values, "adate");
            return (Criteria) this;
        }

        public Criteria andAdateBetween(Date value1, Date value2) {
            addCriterion("adate between", value1, value2, "adate");
            return (Criteria) this;
        }

        public Criteria andAdateNotBetween(Date value1, Date value2) {
            addCriterion("adate not between", value1, value2, "adate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}